package com.kim.eureka.server;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 * eureka 服务器
 */
@EnableEurekaServer
@SpringCloudApplication
public class EurekaServerApp {

	/**
	 * --spring.profiles.active=dev2
	 * -Xms128m -Xmx128m
	 * 本地启动采用此方法加载profiles文件
	 * <code>ConfigurableApplicationContext context = new SpringApplicationBuilder(EurekaServerApp.class).
	 * profiles("slave1").run(args)</code>
	 * <code>SpringApplication.run(EurekaServerApp.class, args)</code>
	 * 服务器采用此方法 java -jar --spring.profiles.active=slave3;
	 */
	public static void main(String[] args) {
		SpringApplication.run(EurekaServerApp.class, args);
	}

}